        <div class="pageheader notab">
            <h1 class="pagetitle">编辑产品</h1>
            <span class="pagedesc">请认真编辑产品的各项信息</span>
            
        </div><!--pageheader-->
        
        <div id="contentwrapper" class="contentwrapper lineheight21">
			
        
            <form class="stdform stdform2" method="post">
				<style>
				.form-table{ width:100%; background:#ddd;}
				.form-table th,.form-table td{ padding:15px;}
				.form-table th.title{ width:190px; background:#fcfcfc; color:#666; text-align:left;}
				.form-table th small{ font-weight:normal; color:#999; display:block;}
				.form-table td{ background:#fff; vertical-align:middle;}
				</style>
				<table class="form-table" cellspacing="1" border="0">
					<tr>
						<th class="title">商品标题<small>这里是提示您</small></th>
						<td>
							<input type="text" name="title" id="title" value="{$info.title}" class="smallinput" />
						</td>
					</tr>
					<tr>
						<th class="title">
							商品图片
							<small>点击+可以上传，点击图片可更换</small>
						</th>
						<td>
							<iframe src="{:U('upload', 'event=setPic&url='.$info['pic'])}" scrolling="no" width="100" height="100"></iframe>
							<input type="hidden" name="pic" id="pic" value="{$info.pic}" class="smallinput" />
							<script>
							function setPic(url){
								document.getElementById('pic').value = url;
							}
							</script>
						</td>
					</tr>
					<tr>
						<th class="title">市场价格</th>
						<td>
							<input type="text" name="market_price" id="market_price" value="{$info.market_price}" class="smallinput" />
						</td>
					</tr>
					<tr>
						<th class="title">销售价格</th>
						<td>
							<input type="text" name="price" id="price" value="{$info.price}" class="smallinput" />
						</td>
					</tr>
					<tr>
						<th class="title">产品属性</th>
						<td>
							<style>
								.attr th{ vertical-align:top; width:100px;}
								.attr .value{ margin-right:10px; position:relative; width:100px; height:40px; float:left;}
								.attr .value a{ background:red; color:#fff; height:32px; line-height:32px; padding:0 5px; position:absolute; right:0; border-radius:0 2px 2px 0}
								.attr .value input{ width:80px !important;}
							</style>
							<table class="attr">
								<tbody>
									<tr>
										<th>
											<input type="text" value="颜色" />
											<small><a href="">[删除]</a></small>
										</th>
										<td>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
										</td>
									</tr>
									<tr>
										<th>
											<input type="text" value="颜色" />
											<small><a href="">[删除]</a></small>
										</th>
										<td>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
											<span class="value">
												<input type="text" />
												<a href="">X</a>
											</span>
										</td>
									</tr>
								</tbody>
							</table>
							<table>
								<thead>
									<tr>
										<th>
											<th>颜色</th>
										</th>
										<th>
											<th>尺码</th>
										</th>
										<th>
											<th>价格</th>
										</th>
										<th>
											<th>库存</th>
										</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td>白色</td>
										<td>白色</td>
										<td>白色</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
					<tr>
						<th class="title">产品详情</th>
						<td>
							<textarea name="body" id="body" class="longinput" style="margin: 0px; height: 400px; max-width:640px;">{$info.body}</textarea>
						</td>
					</tr>
				</table>
				
				<!--p>
					<label>商品标题</label>
					<span class="field"><input type="text" name="title" id="title" value="{$info.title}" class="smallinput" /></span>
				</p>
				
				<p>
					<label>
						商品图片
						<small>点击+可以上传，点击图片可更换</small>
					</label>
					<span class="field">
						<iframe src="{:U('upload', 'event=setPic&url='.$info['pic'])}" scrolling="no" width="100" height="100"></iframe>
						<input type="hidden" name="pic" id="pic" value="{$info.pic}" class="smallinput" />
						<script>
						function setPic(url){
							document.getElementById('pic').value = url;
						}
						</script>
					</span>
				</p>
				<p>
					<label>市场价格</label>
					<span class="field"><input type="text" name="market_price" id="market_price" value="{$info.market_price}" class="smallinput" /></span>
				</p>

				<p>
					<label>销售价格</label>
					<span class="field"><input type="text" name="price" id="price" value="{$info.price}" class="smallinput" /></span>
				</p>
				<p>
					<label>属性</label>
					<span class="field">
							<style>
							.attr{ padding-left:50px; padding-bottom:10px; display:block; position:relative;}
							.attr>b{ position:absolute; left:0; top:5px; }
							.attr .value{ margin-right:10px; position:relative; width:100px; height:40px; float:left;}
							.attr .value a{ background:red; color:#fff; height:32px; line-height:32px; padding:0 5px; position:absolute; right:0;}
							.attr .value input{ width:80px !important;}
							</style>
							<span class="attr">
								<b>颜色</b>
								<span class="value">
									<input type="text" />
									<a href="">X</a>
								</span>
								<span class="value">
									<input type="text" />
									<a href="">X</a>
								</span>
								<span class="value">
									<input type="text" />
									<a href="">X</a>
								</span>
								<span style="clear:both"></span>
							</span>
							<!--table>
								<tbody>
									<tr>
										<td>颜色</td>
										<td>
											<input type="text" class="attr_input" />
											<input type="text" class="attr_input" />
											<input type="text" class="attr_input" />
											<input type="text" class="attr_input" />
										</td>
									</tr>
									<tr>
										<td>尺码</td>
										<td>
											<input type="text" class="attr_input" />
											<input type="text" class="attr_input" />
											<input type="text" class="attr_input" />
											<input type="text" class="attr_input" />
										</td>
									</tr>
								</tbody>
							</table->
					</span>
				</p>
				<p>
					<label>产品详情</label>
					<span class="field">
						<textarea name="body" id="body" class="longinput" style="margin: 0px; height: 400px;">{$info.body}</textarea>
					</span>
				</p-->
				
				
				<p class="stdformbutton">
					<button class="submit radius2">提交</button>
					<input type="reset" class="reset radius2" value="重置" />
				</p>
			</form>
			<script src="__PUBLIC__/plugins/ueditor1.4.3/ueditor.config.js"></script>
			<script src="__PUBLIC__/plugins/ueditor1.4.3/ueditor.all.min.js"></script>
			<script>
				ue = UE.getEditor('body');
			</script>
        
        </div><!--contentwrapper-->
        